import React, { FC } from 'react';
import styled from 'styled-components';
import classNames from 'classnames';
import '@/assets/iconfont/iconfont.css'

interface IconProps {
  className?: string
}

const Icon: FC<IconProps> = (props) => {
  const { className } = props;
  const classes = classNames('iconfont', {
    [`icon-${className}`]: className
  })
  return <i className={classes}></i>
}

Icon.defaultProps = {
  className: 'clock'
}

export default Icon;